<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
var isFlipedString = function(s1, s2) {
    return s1.split('').sort().toString() === s2.split('').sort().toString()
};
    </script>
</body>
</html>